﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ChangeInfo.aspx.cs" Inherits="Pages_ChangeInfo" %>
<%@ MasterType VirtualPath="~/Site.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnRegister" runat="server" ForeColor="red">
                Chú ý: Các ô có dấu (*) là những ô bắt buộc phải điền thông tin.
                <br />
                <br />
                <asp:Panel ID="pnError" runat="server" ForeColor="red" Visible="false">
                    <table border="0" cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td colspan="2" style="background-color: #EEE; color: red;">
                                Lỗi xảy ra.
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lberror" runat="server" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <table border="0" cellpadding="3" cellspacing="3" width="100%">                    
                    <tr>
                        <td colspan="2" style="background-color: #EEE; color: Blue;">
                            Cập nhật thông tin cá nhân.
                        </td>
                    </tr>
                    <tr>
                        <td style="color: Black">
                            Facbook Id:
                        </td>
                        <td>
                            <asp:TextBox ID="txtFB_Id" Width="200px" runat="server" Enabled="false" />
                        </td>
                    </tr>
                    <tr>
                        <td style="color: Black">
                            Họ tên:
                        </td>
                        <td>
                            <asp:TextBox ID="txtFullName" Width="200px" runat="server" />
                            (*)
                        </td>
                    </tr>
                    <tr>
                        <td style="color: Black">
                            Địa chỉ:
                        </td>
                        <td>
                            <asp:TextBox ID="txtAddress" TextMode="MultiLine" Width="200px" runat="server" />
                            <span>(*)</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="color: Black">
                            Điện thoại:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPhone" runat="server" Width="200px" onkeypress="return onlyNumbers();"></asp:TextBox>
                            (*)
                            <asp:RegularExpressionValidator runat="server" ID="valNumbersOnly" ControlToValidate="txtPhone"
                                Display="Dynamic" ErrorMessage="Chỉ được nhập số" ValidationExpression="(^([0-9]*|\d*\d{1}?\d*)$)"
                                ForeColor="Red">
                            </asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="color: Black">
                            Email:
                        </td>
                        <td>
                            <asp:TextBox ID="txtMail" Width="200px" runat="server" />
                            (*)
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtMail"
                                ErrorMessage="Không đúng định dạng Email" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>                    
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnRegister" Text="&nbsp;Thay đổi&nbsp;" runat="server" OnClick="btnRegister_Click"
                                Height="25px"  class="fb_invite_button"/>
                            <%--<asp:Button ID="btrefresh" Text="&nbsp;Làm mới&nbsp;" runat="server" Height="25px"
                        OnClick="btrefresh_Click" />--%>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnRegisterSuccessfull" runat="server" ForeColor="blue">
                Thay đổi thông tin thành công.
            </asp:Panel>            
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="footer" Runat="Server">
</asp:Content>

